package com.hospital.serviceImpl;

import com.hospital.dao.DepartmentMapper;
import com.hospital.entity.ResponsibleDepartment;
import com.hospital.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public Integer Insert(ResponsibleDepartment responsibleDepartment) {
        Integer state = departmentMapper.Insert(responsibleDepartment);
        return state;
    }
}
